package com.xwj.enums;

/**
 * TCC事务状态枚举
 *
 * @author xwj
 * @date 2020/11/20
 */
public enum TccTransactionalStatus {
    TRY(0, "try"),
    CONFIRM(1, "confirm"),
    CANCEL(2, "cancel");
    private int code;
    private String description;

    TccTransactionalStatus(int code, String description) {
        this.code = code;
        this.description = description;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
